﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="homeView.aspx.cs" Inherits="homeView" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">

<body >
   <form id="Form1"  > 
   <table id="Table1" > 
    <tr>
    <td  style="width:100px"></td>
        <td style="text-align:center; font-weight: 700;">
            To submit an IT Work order, Please select your correspod EquipmentID or SystemID 
        </td>
     </tr>
     <tr>
      <td  style="width:100px"></td>
        <td style="text-align:center; font-weight: 700;" class="style1">
            Your Equipment are:
        </td>
     </tr>
     <tr id="Tr1"  runat="server">
      <td  style="width:100px"></td>
        <td style="text-align:center">
            <asp:GridView ID="grdHomeequipment" runat="server" AllowPaging="True" 
                 
                    AllowSorting="True" AutoGenerateColumns="False" 
                    CssClass="GridItem" DataSourceID="dsHomeEquipment" 
                    RowHeaderColumn="CodeNumber" 
                    width="720px"  DataKeyNames="CodeNumber" PageSize="7" CellPadding="0" 
                ForeColor="#333333" GridLines="None" onrowdatabound="grdHomeequipment_RowDataBound"
                   >
                   
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                   
                    <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundField DataField="CodeNumber" HeaderText="CodeNumber" ReadOnly="True" 
                            SortExpression="CodeNumber">
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                         <asp:TemplateField HeaderText="Description" SortExpression="DESCRIPTIONEQUIPMENT">
                            <ItemTemplate>
                             <a href="Default.aspx"> <%# Eval("DESCRIPTIONEQUIPMENT")%></a> 
                               
                            </ItemTemplate>
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox0" runat="server" Text='<%# Bind("DESCRIPTIONEQUIPMENT") %>' 
                                     Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                            
                        </asp:TemplateField>
                        
                    </Columns>
                   <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#284775" 
                        ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle CssClass="AlternativeRowStyle" BackColor="#F7F6F3" 
                        ForeColor="#333333" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" 
                        ForeColor="#284775" />
 </asp:GridView>
 
                     <asp:ObjectDataSource ID="dsHomeEquipment" runat="server" 
                SelectMethod="ShowEquipmentSupply" TypeName="DirectServiceHome">
            </asp:ObjectDataSource>
                 </td>
        
     </tr>

     <tr>
      <td  style="width:100px"></td>
        <td style="text-align:center; font-weight: 700;">
            System code are:
        </td>
     </tr>
     <tr>
         <td  style="width:100px"></td>
         <td style="text-align:center; font-weight: 700;">
        
         <asp:GridView ID="grdHomeSystem" runat="server" AllowPaging="True" 
                 
                    AllowSorting="True" AutoGenerateColumns="False" 
                    CssClass="GridItem" DataSourceID="dsHomesystem" 
                    RowHeaderColumn="CodeNumber" 
                    width="720px"  DataKeyNames="CodeNumber" PageSize="7" CellPadding="0" 
                ForeColor="#333333" GridLines="None"
                   >
                   
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                   
                    <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundField DataField="CodeNumber" HeaderText="SystemId" ReadOnly="True" 
                            SortExpression="CodeNumber">
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                         <asp:TemplateField HeaderText="Description" 
                            SortExpression="DESCRIPTIONEQUIPMENT">
                            <ItemTemplate>
                                <%# Eval("DESCRIPTIONEQUIPMENT")%>
                              
                            </ItemTemplate>
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox0" runat="server" Text='<%# Bind("DESCRIPTIONEQUIPMENT") %>' 
                                     Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        
                    </Columns>
                   <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#284775" 
                        ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle CssClass="AlternativeRowStyle" BackColor="#F7F6F3" 
                        ForeColor="#333333" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" 
                        ForeColor="#284775" />
 </asp:GridView>
         
         
             <asp:ObjectDataSource ID="dsHomesystem" runat="server" 
                 SelectMethod="ShowSystem" TypeName="DirectServiceHome">
             </asp:ObjectDataSource>
         
         
         </td>
     </tr>
   </table>
   </form>
      
</body>

</asp:Content>

